<?php self::header (); ?>
<?php self::menu ('home'); ?>

<div class="container">

	<h1>Welcome <?php self::eprint ($data['firstname']); ?> <?php self::eprint ($data['lastname']); ?>!</h1>
	<p class="lead">Congratulations, we've successfully created your new PassKey account!
	<br />Before you proceed, please read the following information - <strong>it's really important</strong>.</p>
	
	<h2>Your account details</h2>
	<p>Below are your account details, including your chosen password.
	<br /><strong>We will never show you your password again</strong>.
		Make sure you remember it before leaving this page.</p>
	<table>
		<tr><th class="text-right">Username:&nbsp;</th><td><code><?php self::eprint ($data['username']); ?></code></td></tr>
		<tr><th class="text-right">Password:&nbsp;</th><td><code><?php self::eprint ($data['password']); ?></code></td></tr>
		<tr><th class="text-right">Email Addr:&nbsp;</th>	<td><code><?php self::eprint ($data['email']); ?></code></td></tr>
	</table>
		
	<h2>Verifying your email address</h2>
	<p>To ensure that people only share their passwords and other sensitive data with the people they mean to - PassKey validates everyone's email address.
	An email should be on it's way to you (if it hasn't already arrived).</p>
	<p>If you ever change your email address, you can (and should) update us via your account settings page.</p>

	<h2>Recovering your account</h2>
	<p>Every PassKey user has a unique and secret "key" (known as a <strong>private key</strong>), which is used to encrypt their information.</p>
	<p>Your PassKey password (above) lets PassKey unlock your <strong>private key</strong> (so no-one else can steal it).
	<br />If you forget your password, PassKey won't be able to unlock your private key, and your information will be forever lost.</p>
	<p>We therefore recommend that you download an unlocked copy of your <strong>private key</strong> so that if the worse happens, you can still recover your information.</p>
	<p class="text-strong">This is an <strong>optional step</strong> and don't forget - if anyone gets your <strong>private key</strong>, they can access your <strong>entire account</strong>.
	<br />If you choose to download your <strong>private key</strong>, make sure you keep it somewhere very safe.</p>
	
	<h3>Here is your private key...</h3>
	<p>This is it.  You can always download it at another time through your accounts setting page.
	<br />You can copy-and-paste it from here, or use the download button.</p>
	
	<pre><?php print ($data['private_clear']); ?></pre>
	
</div>

<?php self::footer (); ?>